Don't write "Generator" meta tags in html output when running test suite.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 18 Feb 2014 06:02:32 +0000 (06:02 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 18 Feb 2014 06:02:32 +0000 (06:02 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4755 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/html.cc
gpsbabel/reference/gc/GCGCA8~html.txt

index d641af15fbfb7277b5d93b0ef437dc417417bf51..185329b5838dc183d9b00e34597887614bf51163 100644 (file)
@@ -268,7 +268,12 @@ data_write(void)
   gbfprintf(file_out, "<html>\n");
   gbfprintf(file_out, "<head>\n");
   gbfprintf(file_out, " <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">\n");
+
+  // Don't write this line when running test suite.  Actually, we should 
+  // probably not write this line at all...
+  if (!getenv("GPSBABEL_FREEZE_TIME")) {
   gbfprintf(file_out, " <meta name=\"Generator\" content=\"GPSBabel %s\">\n", gpsbabel_version);
+  }
   gbfprintf(file_out, " <title>GPSBabel HTML Output</title>\n");
   if (stylesheet) {
     gbfprintf(file_out, " <link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", stylesheet);
index ef70a7c1197be224843d61bc983b6cc6ed70164e..50b79a2c0aa99494e0d28454830640abcd3dd206 100644 (file)
@@ -2,7 +2,6 @@
 <html>
 <head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
- <meta name="Generator" content="GPSBabel 1.4.4">
  <title>GPSBabel HTML Output</title>
  <style>
   p.gpsbabelwaypoint { font-size: 120%; font-weight: bold }
@@ -37,4 +36,4 @@ Now that it's intuitively obvious to even the most casual observer where the cac
 <br>
 <img SRC="http://www.mtgc.org/mtgc_member-banner.gif" WIDTH="500" HEIGHT="40" ALT="Member of Middle Tennessee GeoCachers Club [www.mtgc.org]" BORDER="0"></a></p></p>
 </td></tr></table>
-</body></html>
\ No newline at end of file
+</body></html>